<article class="module width_3_quarter">
<header>
			<h3 class="tabs_involved"><?php echo (isset($id)) ? 'Update User' : 'Create User' ?></h3>
</header>
<div class="module_content">



<?php echo validation_errors('<p class="error">'); ?>


<?php
   
   
echo form_open((isset($id)) ? "user/edit/".$id : "user/create");

isset($id) ?  form_hidden('username', 'johndoe') : '';

echo form_fieldset();
echo form_label('Display Name', 'display_name');
echo form_input('display_name', set_value('first_name',isset($user['display_name']) ? $user['display_name'] : '' ));
echo form_fieldset_close(); 

echo form_fieldset();
echo form_label('First Name', 'first_name');
echo form_input('first_name', set_value('first_name',isset($user['first_name']) ? $user['first_name'] : '' ));
echo form_fieldset_close(); 

echo form_fieldset();
echo form_label('Last Name', 'last_name');
echo form_input('last_name', set_value('last_name',isset($user['last_name']) ? $user['last_name'] : ''));
echo form_fieldset_close(); 

echo form_fieldset();
echo form_label('Email Address', 'email');
echo form_input('email', set_value('email',isset($user['email']) ? $user['email'] : ''));
echo form_fieldset_close(); 
?>

<legend>Login Info</legend>
<?php


echo form_fieldset();
echo form_label('Username', 'username');
echo form_input('username', set_value('username',isset($user['username']) ? $user['username'] : '' ));
echo form_fieldset_close(); 

echo form_fieldset();
echo form_label('Password', 'password');
echo form_input('password', set_value('password'));
echo form_fieldset_close(); 

echo form_fieldset();
echo form_label('Please Confirm Password' );
echo form_input('password2');
?>

<div class="submit_link">
<input type="submit" value="<?php echo (isset($id)) ? 'Update User' : 'Create User' ?>" class="alt_btn" />					
</div>


<?php
echo form_fieldset_close(); 

?>




</div>

</article>